package com.guijq.codesegment.springbean.dao;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

import org.apache.ibatis.annotations.Select;

/**
 * @author yangjf
 * @version 0.1.0
 * @time 2018/12/25/025
 */
public class UserInvocationHandler implements InvocationHandler {
    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        Select select = method.getDeclaredAnnotation(Select.class);
        System.out.println(select.value()[0]);
        return null;
    }
}
